-
Notifications
You must be signed in to change notification settings - Fork 910
Fixed DynamoDbEnhancedClient DefaultDynamoDbAsyncTable::createTable()… #5847
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
726a764
to
a802297
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we add functional tests to this change?
@shetsa-amzn |
9b3a69f
to
c3e941f
Compare
6c8ec46
to
5357dcd
Compare
...odb-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/IndexUtils.java
Outdated
Show resolved
Hide resolved
...java/software/amazon/awssdk/enhanced/dynamodb/internal/client/DefaultDynamoDbAsyncTable.java
Outdated
Show resolved
Hide resolved
cb51803
to
b636dca
Compare
Hi @zoewangg, |
b636dca
to
9a432cd
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Triggering builds
...b-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/TableIndices.java
Outdated
Show resolved
Hide resolved
...b-enhanced/src/main/java/software/amazon/awssdk/enhanced/dynamodb/internal/TableIndices.java
Outdated
Show resolved
Hide resolved
ed2be55
to
52d6e25
Compare
LGTM, waiting for secondary reviewer @dagnir to review. @roamariei jfyi, let's not squash commits going forward since it'd make it hard to review changes between revision. :) Triggering builds. |
|
…dices that are defined on annotations of the POJO class, similar to DefaultDynamoDbTable::createTable()
52d6e25
to
e51d00b
Compare
Fixed DynamoDbEnhancedClient DefaultDynamoDbAsyncTable::createTable() to create secondary indices that are defined on annotations of the POJO class, similar to DefaultDynamoDbTable::createTable().
Description
Current behavior: DynamoDbEnhancedAsyncClient#createTable() fails to generate secondary indexes that are defined on annotations of the POJO class.
Expected behavior: DynamoDbEnhancedAsyncClient#createTable() should generate secondary indexes that are defined on annotations of the POJO class, similar to DefaultDynamoDbTable::createTable().
Motivation and Context
#5400
Modifications
Followed the same approach as the synchronous flow in DefaultDynamoDbTable::createTable(). Refactored existing code to enable reuse across both classes.
Testing
The changes have already been tested in the synchronous flow, and additional unit tests have been added for the newly created utility class.
Screenshots (if appropriate)
Types of changes
Checklist
mvn install
succeedsscripts/new-change
script and following the instructions. Commit the new file created by the script in.changes/next-release
with your changes.License